Skip to content

fix(appbar): keep the title inside the bar at large text sizes - #5273

Open
Priyanshu0007 wants to merge 1 commit into
callstack:mainfrom
Priyanshu0007:fix/appbar-title-font-scale
Open

Priyanshu0007 wants to merge 1 commit into
callstack:mainfrom
Priyanshu0007:fix/appbar-title-font-scale

Conversation

@Priyanshu0007

@Priyanshu0007 Priyanshu0007 commented Nov 20, 2026 •

Copy link
Copy Markdown

Motivation

At the largest iOS accessibility text sizes, the Appbar.Content title outgrew the appbar's fixed height and was clipped. titleMaxFontSizeMultiplier now defaults to the largest scale that fits each mode: 2 (small, center-aligned), 1.25 (medium), 1.1 (large). The prop still overrides it; 0 removes the limit.

Android doesn't clip, but the medium/large caps apply there too, so those titles are slightly smaller at 200%.

Related issue

Fixes #5247

Screenshots / Videos

iOS, largest accessibility size:
iOS

Android, 200%:
Android

Test plan

  1. Set iOS text size to the largest accessibility size.
  2. Open the Appbar example and switch modes. The title stays fully visible.

The appbar has a fixed height, but the title scaled without a limit, so at
the largest iOS accessibility text sizes the bar clipped it.

`titleMaxFontSizeMultiplier` now defaults to the largest scale at which the
title fits each mode: 2 in small and center-aligned mode, 1.25 in medium
mode and 1.1 in large mode. Passing the prop still overrides it, and `0`
removes the limit.

Fixes callstack#5247

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Appbar.Content: the title is clipped at the largest accessibility text sizes

1 participant